{% extends 'base.html' %}
{% block title %}添加部门{% endblock %}
{% block content %}
<div class="container">
  <!-- 添加部门面板 -->
  <div class="panel panel-default" style="border: 1px solid #ffc2c4; border-radius: 8px;">
    <div class="panel-heading" style="background-color: #ff6b81; color: white; font-weight: 600; font-size: 16px; border-radius: 8px 8px 0 0;">
      添加部门
    </div>
    <div class="panel-body" style="padding: 20px; background-color: #fffafa;">
      <form method="post">
        {% csrf_token %}
        <div class="form-group">
          <label for="dname" style="color: #ff6b81; font-weight: 500;">部门名称</label>
          <input type="text" id="dname" name="dname" class="form-control" placeholder="请输入部门名称"
                 style="border: 1px solid #ffc2c4; border-radius: 5px; padding: 10px;"/>
        </div>
        <div class="form-group">
          <label for="loc" style="color: #ff6b81; font-weight: 500;">地址</label>
          <input type="text" id="loc" name="loc" class="form-control" placeholder="请输入地址"
                 style="border: 1px solid #ffc2c4; border-radius: 5px; padding: 10px;"/>
        </div>
        <button type="submit" class="btn" style="background-color: #ff6b81; color: white; border-radius: 5px; padding: 10px 20px; font-size: 14px; font-weight: 500;">
          添加
        </button>
      </form>
    </div>
  </div>
</div>
{% endblock %}
